// by Xeno
#define THIS_FILE "x_weaponcargo_a3.sqf"
#include "x_setup.sqf"
private "_vec";

#define __awc(wtype,wcount) _vec addWeaponCargo [#wtype,wcount];
#define __amc(mtype,mcount) _vec addMagazineCargo [#mtype,mcount];
#define __aic(mtype,mcount) _vec addItemCargo [#mtype,mcount];

PARAMS_1(_vec);
clearMagazineCargo _vec;
clearWeaponCargo _vec;
clearItemCargo _vec;

if (GVAR(player_side) == blufor) then {
	__awc(hgun_P07_F,1)
	__awc(hgun_PDW2000_F,1)
	if (productVersion select 3 >= 111471) then {
	__awc(hgun_Pistol_heavy_01_F,1)
	};
	
	__awc(arifle_MX_F,1)
	__awc(arifle_MX_GL_F,1)
	__awc(arifle_MX_SW_F,1)
	__awc(arifle_MXC_F,1)
	__awc(arifle_MXM_F,1)
	__awc(arifle_SDAR_F,1)
	__awc(arifle_TRG20_F,1)
	__awc(arifle_TRG21_F,1)
	__awc(arifle_TRG21_GL_F,1)
	__awc(srifle_EBR_F,1)
	__awc(srifle_LRR_F,1)
	
	__awc(arifle_Mk20_F,1)
	__awc(arifle_Mk20C_F,1)
	__awc(arifle_Mk20_GL_F,1)
	
	__awc(LMG_Mk200_F,1)
	__awc(SMG_01_F,1)
	__awc(SMG_02_F,1)
	
	__awc(launch_NLAW_F,1)
	__awc(launch_RPG32_F,1)
	__awc(launch_Titan_F,1)
	__awc(launch_Titan_short_F,1)
	__awc(MineDetector,1)
	
	__awc(Binocular,1)
if (GVAR(without_nvg) == 1) then {
	__aic(NVGoggles,1)
};
	__aic(acc_flashlight,1)
	__aic(acc_pointer_IR,1)
	if (GVAR(no_faks) == 1) then {
		__aic(FirstAidKit,5)
	};
	__aic(H_Cap_blu,1)
	__aic(H_Cap_headphones,1)
	__aic(H_Cap_red,1)
	__aic(H_HelmetB,1)
	__aic(H_Booniehat_khk,1)
	__aic(H_HelmetB_paint,1)
	__aic(H_HelmetB_light,1)
	__aic(H_MilCap_mcamo,1)
	if (GVAR(pilots_only) == 1) then {
		__aic(H_PilotHelmetHeli_B,1)
	} else {
		if (count GVAR(only_pilots_can_fly) == 0) then {
			__aic(H_PilotHelmetHeli_B,1)
		} else {
			if (str(player) in GVAR(only_pilots_can_fly)) then {
				__aic(H_PilotHelmetHeli_B,1)
			};
		};
	};
	__aic(Medikit,5)
	__aic(muzzle_snds_B,1)
	__aic(muzzle_snds_H,1)
	__aic(muzzle_snds_H_MG,1)
	__aic(muzzle_snds_L,1)
	__aic(muzzle_snds_M,1)
	__aic(muzzle_snds_acp,1)
	__aic(optic_Aco,1)
	__aic(optic_ACO_grn,1)
	__aic(optic_Arco,1)
	__aic(optic_Hamr,1)
	__aic(optic_Holosight,1)
	__aic(optic_Holosight_smg,1)
	__aic(optic_Aco_smg,1)
	__aic(optic_ACO_grn_smg,1)
	__aic(optic_MRCO,1)
	__aic(optic_SOS,1)
	__aic(optic_NVS,1)
	__aic(optic_Nightstalker,1)
	__aic(optic_tws,1)
	__aic(optic_tws_mg,1)
	if (productVersion select 3 >= 111471) then {
	__aic(optic_MRD,1)
	__aic(optic_DMS,1)
	};
	
	__aic(ToolKit,1)
	__aic(LaserDesignator,1)
	__aic(B_UavTerminal,1)
	
	__aic(U_B_CombatUniform_mcam,1)
	__aic(U_B_CombatUniform_mcam_tshirt,1)
	__aic(U_B_CombatUniform_mcam_vest,1)
	__aic(U_B_GhillieSuit,1)
	if (GVAR(pilots_only) == 1) then {
		__aic(U_B_HeliPilotCoveralls,1)
	} else {
		if (count GVAR(only_pilots_can_fly) == 0) then {
			__aic(U_B_HeliPilotCoveralls,1)
		} else {
			if (str(player) in GVAR(only_pilots_can_fly)) then {
				__aic(U_B_HeliPilotCoveralls,1)
			};
		};
	};
	__aic(U_B_Wetsuit,1)
	__aic(V_RebreatherB,1)
	__aic(V_Rangemaster_belt,1)
	__aic(V_BandollierB_khk,1)
	__aic(V_BandollierB_cbr,1)
	__aic(V_BandollierB_rgr,1)
	//__aic(V_BandollierB_blk,1)
	__aic(V_PlateCarrier1_rgr,1)
	__aic(V_PlateCarrier1_rgr,1)
	//__aic(V_PlateCarrier1_cbr,1)
	__aic(V_PlateCarrier2_rgr,1)
	__aic(V_PlateCarrierGL_rgr,1)
	__aic(V_TacVest_khk,1)
	__aic(V_TacVest_brn,1)
	__aic(V_TacVest_oli,1)
	__aic(V_TacVest_blk,1)
	__aic(U_B_CombatUniform_mcam_worn,1)
	__aic(U_B_CombatUniform_wdl,1)
	__aic(U_B_CombatUniform_wdl_tshirt,1)
	__aic(U_B_CombatUniform_wdl_vest,1)
	__aic(U_B_CombatUniform_sgg,1)
	__aic(U_B_CombatUniform_sgg_tshirt,1)
	__aic(U_B_CombatUniform_sgg_vest,1)
	__aic(U_B_SpecopsUniform_sgg,1)
	
	__amc(30Rnd_45ACP_Mag_SMG_01,10)
	if (productVersion select 3 >= 111471) then {
	__amc(11Rnd_45ACP_Mag,10)
	};
	__amc(16Rnd_9x21_Mag,10)
	__amc(30Rnd_9x21_Mag,10)
	__amc(30Rnd_65x39_caseless_mag,10)
	__amc(30Rnd_65x39_caseless_mag_Tracer,10)
	__amc(30Rnd_65x39_caseless_mag,10)
	__amc(100Rnd_65x39_caseless_mag,10)

	__amc(20Rnd_762x51_Mag,10)
	__amc(20Rnd_556x45_UW_mag,10)
	__amc(30Rnd_556x45_Stanag,10)
	
	__amc(7Rnd_408_mag,3)
	
	__amc(200Rnd_65x39_cased_Box,10)
	__amc(200Rnd_65x39_cased_Box_Tracer,10)
	__amc(100Rnd_65x39_caseless_mag_Tracer,10)
	
	__amc(NLAW_F,3)
	__amc(Titan_AT,1)
	__amc(RPG32_F,3)
	__amc(Titan_AA,3)
	if (productVersion select 2 > 74) then {
		__amc(RPG32_HE_F,3)
	} else {
		__amc(RPG32_AA_F,3)
	};
	
	__amc(1Rnd_HE_Grenade_shell,10)
	__amc(1Rnd_Smoke_Grenade_shell,10)
	__amc(1Rnd_SmokeBlue_Grenade_shell,10)
	__amc(1Rnd_SmokeGreen_Grenade_shell,10)
	__amc(1Rnd_SmokeOrange_Grenade_shell,10)
	__amc(1Rnd_SmokePurple_Grenade_shell,10)
	__amc(1Rnd_SmokeRed_Grenade_shell,10)
	__amc(1Rnd_SmokeYellow_Grenade_shell,10)
	__amc(3Rnd_HE_Grenade_shell,10)
	__amc(3Rnd_Smoke_Grenade_shell,10)
	__amc(3Rnd_SmokeBlue_Grenade_shell,10)
	__amc(3Rnd_SmokeGreen_Grenade_shell,10)
	__amc(3Rnd_SmokeOrange_Grenade_shell,10)
	__amc(3Rnd_SmokePurple_Grenade_shell,10)
	__amc(3Rnd_SmokeRed_Grenade_shell,10)
	__amc(3Rnd_SmokeYellow_Grenade_shell,10)
	__amc(3Rnd_UGL_FlareCIR_F,10)
	__amc(3Rnd_UGL_FlareGreen_F,10)
	__amc(3Rnd_UGL_FlareRed_F,10)
	__amc(3Rnd_UGL_FlareWhite_F,10)
	__amc(3Rnd_UGL_FlareYellow_F,10)
	__amc(UGL_FlareCIR_F,10)
	__amc(UGL_FlareGreen_F,10)
	__amc(UGL_FlareRed_F,10)
	__amc(UGL_FlareWhite_F,10)
	__amc(UGL_FlareYellow_F,10)
	
	__amc(DemoCharge_Remote_Mag,5)
	__amc(SatchelCharge_Remote_Mag,5)
	__amc(ATMine_Range_Mag,5)
	__amc(ClaymoreDirectionalMine_Remote_Mag,5)
	__amc(APERSMine_Range_Mag,5)
	__amc(APERSBoundingMine_Range_Mag,5)
	__amc(SLAMDirectionalMine_Wire_Mag,5)
	__amc(APERSTripMine_Wire_Mag,5)
	
	__amc(Laserbatteries,5)
	
	__amc(HandGrenade,5)
	__amc(MiniGrenade,5)
	__amc(SmokeShell,5)
	__amc(SmokeShellYellow,5)
	__amc(SmokeShellGreen,5)
	__amc(SmokeShellRed,5)
	__amc(SmokeShellPurple,5)
	__amc(SmokeShellOrange,5)
	__amc(SmokeShellBlue,5)
	
	__amc(Chemlight_green,5)
	__amc(Chemlight_red,5)
	__amc(Chemlight_yellow,5)
	__amc(Chemlight_blue,5)
	__amc(Chemlight_blue,5)
} else {
	__awc(AK_74,1)
	__awc(AK_74_GL,1)
	__awc(AK_74_GL_kobra,1)
	__awc(AKS_74_NSPU,1)
	__awc(AKS_74_GOSHAWK,1)
	__awc(AK_47_M,1)
	__awc(AK_47_S,1)
	__awc(AKS_74,1)
	__awc(AKS_74_kobra,1)
	__awc(AKS_74_pso,1)
	__awc(AKS_74_U,1)
	
	__awc(UZI_EP1,1)
	__awc(UZI_SD_EP1,1)
	
	__awc(PK,1)
	__awc(RPK_74,1)
	
	__awc(KSVK,1)
	__awc(SVD,1)
	__awc(SVD_des_EP1,1)
	__awc(SVD_NSPU_EP1,1)
	
	__awc(Makarov,1)
	__awc(MakarovSD,1)
	
	__awc(Igla,1)
	__awc(MetisLauncher,1)
	__awc(RPG18,1)
	__awc(RPG7V,1)
	
	__awc(STRELA,1)
	__awc(Binocular,1)
if (GVAR(without_nvg) == 1) then {
	__awc(NVGoggles,1)
};
	
	__amc(30Rnd_545x39_AK,30)
	__amc(30Rnd_762x39_AK47,30)
	__amc(64Rnd_9x19_Bizon,30)
	__amc(64Rnd_9x19_SD_Bizon,30)
	__amc(8Rnd_B_Saiga12_74Slug,30)
	__amc(10Rnd_9x39_SP5_VSS,30)
	__amc(20Rnd_9x39_SP5_VSS,30)
	__amc(75Rnd_545x39_RPK,30)
	__amc(60Rnd_762x54_DT,30)
	__amc(30Rnd_9x19_UZI,50)
	__amc(30Rnd_9x19_UZI_SD,50)
	__amc(FlareWhite_GP25,20)
	__amc(FlareGreen_GP25,20)
	__amc(FlareRed_GP25,20)
	__amc(FlareYellow_GP25,20)
	__amc(1Rnd_HE_GP25,30)
	__amc(1Rnd_SMOKE_GP25,20)
	__amc(1Rnd_SmokeRed_GP25,20)
	__amc(1Rnd_SmokeGreen_GP25,20)
	__amc(1Rnd_SmokeYellow_GP25,20)
	__amc(30Rnd_545x39_AKSD,30)
	__amc(100Rnd_762x54_PK,30)
	__amc(10Rnd_762x54_SVD,6)
	__amc(8Rnd_9x18_Makarov,30)
	__amc(8Rnd_9x18_MakarovSD,30)
	__amc(PG7V,3)
	__amc(PG7VR,3)
	__amc(PG7VL,3)
	__amc(PG9_AT,3)
	__amc(OG7,3)
	__amc(OG9_HE,3)
	__amc(AT13,3)
	__amc(RPG18,3)
	__amc(Igla,5)
	__amc(SmokeShellRed,20)
	__amc(SmokeShellGreen,20)
	__amc(SmokeShellYellow,20)
	__amc(SmokeShellPurple,50)
	__amc(SmokeShellBlue,50)
	__amc(SmokeShellOrange,20)
	__amc(SmokeShell,20)
	__amc(HandGrenade_East,50)
	__amc(5Rnd_127x108_KSVK,3)
	__amc(Mine,10)
	__amc(Pipebomb,5)
	__amc(Laserbatteries,3)
	__amc(Strela,2)
};

if (GVAR(WithAcre)) then {
	__awc(ACRE_PRC119,1)
};
